class UpdateForums < ActiveRecord::Migration
  def self.up
    change_table :forums do |t|
      t.boolean :locked, :default => false, :null => false
    end

    change_table :threads do |t|
      t.boolean :locked, :default => false, :null => false
    end

    change_table :posts do |t|
      t.boolean :deleted, :default => false, :null => false
    end

    add_foreign_key(:posts, :users, :column => :user_id)
    add_foreign_key(:threads, :users, :column => :user_id)
    add_foreign_key(:forums, :users, :column => :user_id)
  end

  def self.down


  end
end
